package com.huazhi.wzsnw.mapper;

import com.huazhi.wzsnw.model.Peasant;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PeasantMapper {
    int deleteByPrimaryKey(String tid);

    int insert(Peasant record);

    int insertSelective(Peasant record);

    Peasant selectByPrimaryKey(String tid);

    int updateByPrimaryKeySelective(Peasant record);

    int updateByPrimaryKey(Peasant record);

    String getBaseByName(@Param("name") String name, @Param("table") String table);


    List<String> selectListTidBySearch(@Param("key") String key);

    List<Peasant> findPagingByListTid(@Param("listTid") List<String> listTid, @Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize);
    List<String> getTidByName(@Param("name") String name);


}